package com.aischool.utils;

public enum JsonCodeEnum {
	Success(200,"操作成功"),
	Success_User_Logined(201,"登录成功!"),
	Success_User_Logout(202,"退出成功!"),
	
	// 应用级错误
	Faild(400,"操作失败！"),
	Faild_User_NoLogin(401,"您还没有登录！请先登录！"),
	Faild_User_NoPower(402,"您所在的用户组没有权限！"),
	Faild_NoData(404,"没有找到数据！"),
	
	Faild_User_Null(411,"用户名不存在！"),
	Faild_User_WrongPassword(412,"密码错误！"),
	Faild_User_Notfind_UserNamePassWord(413,"请输入用户名或密码！"),
	Faild_User_Locked(414,"账户被冻结！"),
	Faild_User_Diable(415,"账户被禁用！"),
	
	// 系统级错误
	Faild_System_Error(500,"系统错误，请联系管理员!"),
	Faild_System_Error_CreateToken(501,"系统错误，生成Token失败！"),
	
	Faild_6(600,"");
	
	private String msg = "";
    private int code;
    
    private JsonCodeEnum(int code,String msg){
    	this.code=code;
        this.msg=msg;
    }
    
    public String getMsg(){
        return this.msg;
    }
    public int getCode() {
      return this.code;
    }

}
